package com.second.app.thread.change;

/**
 * @Author soul gao
 * @Date 2021/1/24 15:54
 * 努力学习 天天进步
 */
public class Add {
    private String lock;

    public Add(String lock) {
        this.lock = lock;
    }
    public void add(){
        synchronized (lock){
            ValueObject.getList().add("anything");
            lock.notifyAll();
        }
    }

}
